/**
 * 
 */
package com.mobile2you.nci.android.domain;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @author JBromo
 * 
 */
public class Services {

	public String create_at;
	private String heading;
	private int id;
	private int image;
	private String text;
	private String text1;
	private String title;
	private String update_at;
	private String imageURL;

	/**
	 * @return the create_at
	 */
	public String getCreate_at() {
		return create_at;
	}

	/**
	 * @return the heading
	 */
	public String getHeading() {
		return heading;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @return the image
	 */
	public int getImage() {
		return image;
	}

	/**
	 * @return the imageURL
	 */
	public String getImageURL() {
		return "http://nci.m2y.fr/images/services/" + image;
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @return the text1
	 */
	public String getText1() {
		return text1;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @return the update_at
	 */
	public String getUpdate_at() {
		return update_at;
	}

	public void set(JSONObject object) throws JSONException {
		id = object.getInt("id");
		image = object.getInt("image");
		create_at = object.getString("created_at");
		heading = object.getString("heading1");
		text = object.getString("text");
		text1 = object.getString("text1");
		title = object.getString("title");
		update_at = object.getString("updated_at");

	}

	/**
	 * @param create_at
	 *            the create_at to set
	 */
	public void setCreate_at(String create_at) {
		this.create_at = create_at;
	}

	/**
	 * @param heading
	 *            the heading to set
	 */
	public void setHeading(String heading) {
		this.heading = heading;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @param image
	 *            the image to set
	 */
	public void setImage(int image) {
		this.image = image;
	}

	/**
	 * @param imageURL
	 *            the imageURL to set
	 */
	public void setImageURL(String imageURL) {
		this.imageURL = imageURL;
	}

	/**
	 * @param text
	 *            the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * @param text1
	 *            the text1 to set
	 */
	public void setText1(String text1) {
		this.text1 = text1;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @param update_at
	 *            the update_at to set
	 */
	public void setUpdate_at(String update_at) {
		this.update_at = update_at;
	}

}
